import { createRouter, createWebHashHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/Home.vue'),
  },
  {
    path: '/hospitalization_guidance',
    name: 'daozhen',
    component: () => import('@/views/DaoZhen.vue'),
  },
  {
    path: '/equals_sign',
    name: 'denghao',
    component: () => import('@/views/DengHao.vue'),
  },
  {
    path: '/knowledge_base',
    name: 'zhishiku',
    component: () => import('@/views/ZhiShiKu.vue'),
  },
  {
    path: '/extree',
    name: 'extree',
    component: () => import('@/views/EXTree.vue'),
  }
];

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;